<?php

namespace app\common\model;

use app\iindex\controller\Home;
use think\Db;
use think\Model;

/**
 * 文档基础模型
 */
class Document extends Model
{
    protected $auto = [];
    protected $insert = [
        'status' => 1,
        'create_time'
    ];
    protected $update = ['update_time'];

    /**
     * 设置注册时间
     * @return int
     */
    protected function setCreateTimeAttr()
    {
        return time();
    }

    /**
     * 设置更新时间
     * @return int
     */
    protected function setUpdateTimeAttr()
    {
        return time();
    }
}
